<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Mptt DEMO</title>
    <link href="https://cdn.bootcss.com/pure/0.6.2/pure-min.css" rel="stylesheet">
</head>

<body>
    {% load mptt_tags %}
    <ul>
        {% recursetree nodes %}
        <li>
            {{ node.name }} {% if not node.is_leaf_node %}
            <ul class="children">
                {{ children }}
            </ul>
            {% endif %}
        </li>
        {% endrecursetree %}
    </ul>
</body>

</html>